package com.ibeeking.found.report.service.common.constant.enums;

/**
 * Created by ibeeking on 2022/5/8.
 */
public enum JimuReportTypeEnum {

    REPORT_PRINT_INFO("printinfo", "打印设计"),

    REPORT_DATA_INFO("datainfo", "数据报表"),

    REPORT_CHART_INFO("chartinfo", "图形报表"),
    ;

    private String type;
    private String desc;

    private JimuReportTypeEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public String getType() {
        return this.type;
    }

    public String getDesc() {
        return this.desc;
    }

    public static String getDescByType(String type) {
        for (JimuReportTypeEnum enumObj : values()) {
            if (enumObj.getType().equalsIgnoreCase(type)) {
                return enumObj.getDesc();
            }
        }
        return null;
    }
}
